package com.pmcc.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * 字典下拉框用
 * Created by LvXL on 2016/8/26.
 */
public class DictVo {

    private String id;//字典主键

    private String text;//显示节点文本

    private String value;//字典值

    private String dictCode;//字典编码

    private String dictType;//字典所属类型

    private String state;//树状态，'open' 或 'closed'，默认：'open'。如果为'closed'的时候，将不自动展开该节点

    private List<DictVo> children = new ArrayList<DictVo>();//一个节点数组声明了若干节点

    public DictVo() {
    }

    public DictVo(String id, String text, String value, String dictCode, String dictType, String state) {
        this.id = id;
        this.text = text;
        this.value = value;
        this.dictCode = dictCode;
        this.dictType = dictType;
        this.state = state;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public List<DictVo> getChildren() {
        return children;
    }

    public void setChildren(List<DictVo> children) {
        this.children = children;
    }
}
